package com.jdrx.ocp.beans.dto.resource;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @Author: Huangxg
 * @Date: 2018/11/20 9:55
 */
@ApiModel(value = "更新资源DTO" , description = "更新资源信息")
public class UpdateResourceDTO {

    @NotNull
    @ApiModelProperty(value = "数据ID" ,required = true)
    private Long id;


    @NotNull
    @ApiModelProperty(value = "父级资源ID" , required = true)
    private Integer pid;

    @NotBlank
    @Length(min = 1 , max = 30)
    @ApiModelProperty(value = "资源名称" , required = true)
    private String name;

    @NotNull
    @ApiModelProperty(value = "资源类型" , required = true)
    private Short type;

    @NotBlank
    @ApiModelProperty(value = "资源地址" , required = true)
    private String url;

    @NotBlank
    @ApiModelProperty(value = "所属平台" , required = true)
    private String prefix;

    @ApiModelProperty(value = "菜单图标")
    private String menuIcon;
    @ApiModelProperty(value = "菜单序号")
    private Integer sort;
    @ApiModelProperty(value = "资源标识符")
    private String nameEn;
    @ApiModelProperty(value = "页面标题")
    private String title;
    @ApiModelProperty(value = "页面logo")
    private String logo;
    @ApiModelProperty(value = "页面icon")
    private String favicon;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getFavicon() {
        return favicon;
    }

    public void setFavicon(String favicon) {
        this.favicon = favicon;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getNameEn() {
        return nameEn;
    }

    public void setNameEn(String nameEn) {
        this.nameEn = nameEn;
    }
}
